// 库存管理接口
import request from "@/common/request.js";
const api = {
  contract_classify: "/contract_classify/",
};

const acClassifyApi = {
  get_contract_classify(params) {
    return request({
      url: api.contract_classify,
      method: "get",
      params,
    });
  },

  contract_classify_detail(id) {
    return request({
      url: api.contract_classify + id,
      method: "get",
    });
  },

  post_contract_classify(data) {
    return request({
      url: api.contract_classify,
      method: "post",
      data,
    });
  },

  patch_contract_classify(data, id) {
    return request({
      url: api.contract_classify + id + "/",
      method: "patch",
      data,
    });
  },

  delete_contract_classify(id) {
    return request({
      url: api.contract_classify + id + "/",
      method: "delete",
    });
  },
};
export default acClassifyApi;
